//
//  CommonUtil.h
//  ProjectTemplet
//
//  Created by HouKavin on 16/2/4.
//  Copyright © 2016年 HouKavin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CoreSVP.h"

@interface CommonUtil : NSObject


//提示信息(alertView)
+(void)showAlert:(NSString*) msg;
//展示loading
+(void)showLoadingWithMessage:(NSString *)message;
//loading消失
+(void)dismissLoading;
//提示信息居中
+(void)showMessageInCenter:(NSString *)message;
//底部提示信息
+(void)showMessageInBottom:(NSString *)message;
//成功提示信息
+(void)showSuccessMessage:(NSString *)message;
//失败提示信息
+(void)showErrorMessage:(NSString *)message;

//进度条加载框
+(void)showProgess:(CGFloat)progress withMessage:message;

#pragma mark - FOr version
//判断ver是否小于或等于当前系统版本
+(BOOL)isLesserThanOrEqual:(NSString *)ver;

// infoDictionary 包含了项目中几乎所有的基本信息，SDK版本，项目名称等
+(NSString*) getBundleString :(NSString*) key;

//获取程序唯一标识符
+(NSString *)getIdentifierName;

//获取程序的版本号
+(NSString *)getBundleVersionValue;

//获取uuid的值
+(NSString *)getUUIDValue;

//获取当前设备的IPv4或IPv6格式的IP[IPhoneIP getIPAddress:YES];会获取网关ip
+ (NSString *)getIPAddress:(BOOL)preferIPv4;
//获取当前设备所有的ip值，以字典形式展示
+ (NSDictionary *)getIPAddresses;


@end
